<?php

/**
 * sfApply actions.
 *
 * @package    5seven5
 * @subpackage sfApply
 * @author     Tom Boutell, tom@punkave.com
 * @version    SVN: $Id: actions.class.php 2692 2006-11-15 21:03:55Z fabien $
 */

require_once dirname(__FILE__).'/../lib/BasesfApplyActions.class.php';
class sfApplyActions extends BasesfApplyActions
{
    //    Fait buggué en héritage
//    public function executeApply(sfRequest $request)
//    {
//        $response = $this->getResponse();
//        Utils::setSlogTitle('Inscription', $response);
//
//        parent::executeApply($request);
//    }

    public function executeSettings(sfRequest $request){
        isicsBreadcrumbs::getInstance()->addItem('Mon profil', '@member_myProfil');
        isicsBreadcrumbs::getInstance()->addItem('Changer mes informations du profil', '#');
        $response = $this->getResponse();
        Utils::setSlogTitle('Changer mes informations du profil', $response);

        if(parent::executeSettings($request)){
            $this->redirect('sfApply/settings');
        }
    }

//    Fait buggué en héritage
//    public function executeReset(sfRequest $request){
//        isicsBreadcrumbs::getInstance()->addItem('Mon profil', '@member_myProfil');
//        isicsBreadcrumbs::getInstance()->addItem('Changer mon mot de passe', '#');
//        $response = $this->getResponse();
//        Utils::setSlogTitle('Changer mon mot de passe', $response);
//
//        parent::executeReset($request);
//    }

    public function executeResetRequest(sfRequest $request){
        isicsBreadcrumbs::getInstance()->addItem('Oubli du login et/ou du mot de passe', '#');
        $response = $this->getResponse();
        Utils::setSlogTitle('Oubli du login et/ou du mot de passe', $response);

        parent::executeResetRequest($request);
    }

    public function executeEditEmail(sfRequest $request) {
        isicsBreadcrumbs::getInstance()->addItem('Mon profil', '@member_myProfil');
        isicsBreadcrumbs::getInstance()->addItem('Changer mon email', '#');
        $response = $this->getResponse();
        Utils::setSlogTitle('Changer mon email', $response);
    
        parent::executeEditEmail($request);
    }
}